<template>
  <div>
    <el-table :data="attendance" height="400" border style="width: 100%">
      <el-table-column prop="id" label="工号" width="150"> </el-table-column>
      <el-table-column prop="uname" label="姓名" width="160"> </el-table-column>
      <el-table-column prop="apartment" label="部门" width="150"> </el-table-column>
      <el-table-column prop="uposition" label="职位" width="180"> </el-table-column>
      <el-table-column prop="attendance" label="出勤率" width="160"> </el-table-column>
      <el-table-column prop="dayattendance" label="今日考勤"> </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
    name:'StaffCheck',
    data(){
        return{
      
        }
    },
    mounted(){
      this.$store.dispatch('attendance')
    },
    computed:{
      attendance(){
        return this.$store.state.staff.attendance
      }
    }
}
</script>

<style lang='less' scoped>
</style>